<!DOCTYPE html>
<html lang="en" xmlns:v-bind="http://www.w3.org/1999/xhtml">
<head>
    <title>工作报告评价</title>
    <meta charset="utf-8">
    <meta http-equiv="pragma" content="no-cache">
    <meta http-equiv="Cache-Control" content="no-store, must-revalidate">
    <meta http-equiv="expires" content="Wed, 26 Feb 1997 08:21:57 GMT">
    <meta http-equiv="expires" content="-1">
    <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no"
          name="viewport">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <!-- Bootstrap 3.3.6 -->
    <link rel="stylesheet" href="/dist/plugins/bootstrap/css/bootstrap.min.css">
    <link rel="shortcut icon" href="/dist/img/icon.png" type="image/x-icon">
    <!--OA主样式-->
    <link rel="stylesheet" href="/dist/css/OA.min.css?t=39cd89cd">
    <link rel="stylesheet" href="/dist/css/oa-app.css">
    <style type="text/css">
        [v-cloak] {
            display: none;
        }

        table {
            border-collapse: collapse;
            border-right: 1px solid #cbcbcd;
            /*border-bottom:1px solid #cbcbcd;*/
            margin-left: 0px;
            margin-top: 0px;
            margin-bottom: -1px !important;
            margin-right: 0px;
        }

        th, td {
            border-top: 1px solid #cbcbcd;
            border-left: 1px solid #cbcbcd;
            color: #333;
            font-weight: normal;
            line-height: 24px;
            padding-top: 4px !important;
            padding-bottom: 4px !important;
        }

        th {
            background-color: #F8F8F8;
        }

        .table-border-right-none {
            border-right-width: 0px;
        }

        table .td-title {
            background-color: #f8f8f8;
            line-height: 0.24rem;
            font-weight: normal;
        }

        table .td-title2 {
            line-height: 0.24rem;
            font-weight: bold;
        }

        table .td-module {
            background-color: #f8f8f8;
            line-height: 0.24rem;
            font-weight: normal;
        }

        /*娴sir写*/
        .table > tbody > tr > td.td-row2 {
            height: 1rem;
            line-height: 0.3rem;
            max-height: 1rem;
            overflow: hidden;
        }

        .table > tbody > tr > td.td-row2 span {
            max-height: 0.9rem;

            overflow: hidden;
            text-overflow: ellipsis;
            display: -webkit-box;
            -webkit-box-orient: vertical;
            -webkit-line-clamp: 3;
        }

        .table > tbody > tr > td.td-row3 {
            height: 0.48rem;
            line-height: 0.2rem;
            max-height: 0.48rem;
            overflow: hidden;
        }

        .table > tbody > tr > td.td-row3 span {
            max-height: 0.6rem;
            line-height: 0.3rem;
            overflow: hidden;
            text-overflow: ellipsis;
            display: -webkit-box;
            -webkit-box-orient: vertical;
            -webkit-line-clamp: 2;
        }

        .td-value span.lineOne {
            max-height: 0.3rem;
            line-height: 0.3rem;
            overflow: hidden;
            text-overflow: ellipsis;
            /*display: -webkit-box;*/
            /*-webkit-box-orient: vertical;*/
            /*-webkit-line-clamp: 1;*/
        }

        input[type=text], input[type=tel], input[type=number], select {
            box-sizing: border-box;
            border-width: 0;
            border-style: none;
            padding-right: 0 !important;
            padding-top: 0 !important;
            padding-bottom: 0 !important;
            margin-left: 0 !important;
            margin-right: 0 !important;
            margin-top: 0 !important;
            margin-bottom: 0 !important;
            padding-left: 0.06rem;
        }

        input[type=text], input[type=tel], input[type=number], select {
            height: 0.24rem;
            width: 100%;
            border: none;
            outline: none;
            overflow: hidden;
            text-overflow: ellipsis;
            /*-webkit-appearance: none;*/
        }

        textarea {
            width: 100%;
            border: none;
            outline: none;
            -webkit-appearance: none;
            resize: none;
            padding-top: 0.2rem;
            padding-left: 0.06rem;
        }

        .width90 {
            width: 0.96rem;
        }

        .width60 {
            width: 0.6rem;
        }

        .span-a-btn {
            position: absolute;
            right: 0.1rem;
        }

        .userbox {
            border: 0.01rem #BBBBBB solid;
            background-color: White;
            width: 99%;
            overflow: hidden;
        }

        div.userbox {
            min-height: 0.21rem;
            padding-left: 0.06rem;
            padding-top: 0.06rem;
            height: auto;
        }

        input.userbox {
            height: 0.21rem;
            padding-left: 0.06rem;
            line-height: 0.21rem;
        }

        .userbox input {
            border-width: 0;
            border-style: none;
            width: 2.8rem;
        }

        .user {
            height: 0.2rem;
            line-height: 0.2rem;
            max-height: 0.2rem;
            float: left;
            text-align: left;
            min-width: 0.32rem;
            padding-left: 0.01rem;
            overflow: hidden;
            cursor: pointer;
        }

        .user:hover {
            background-color: #cfd4d1;
        }

        .userbox .over.user {
            background-color: #cfd4d1;
        }

        .userbox .select.user {
            color: #fff;
            background-color: #045B9E;
        }

        .saveModle {
            width: 5rem;
            height: 3rem;
            position: fixed;
            top: 50%;
            left: 50%;
            margin-left: -2.5rem;
            margin-top: -1.5rem;
            background: #fff;
            border-radius: 0.1rem;
            z-index: 1978;
            display: none;
            border: 0.01rem solid #cfcfcf;
        }

        .saveModle .top {
            height: 0.34rem;
            line-height: 0.34rem;
            font-size: 0.14rem;
            font-weight: bold;
            color: #333;
            padding-left: 0.07rem;
            border-bottom: 1px solid #cfcfcf;
            background: #fff;
        }

        .saveModle .top .title {
            height: 0.32rem;
            line-height: 0.32rem;
            font-size: 0.14rem;
            font-weight: bold;
            color: #333;
            float: left;
            background: #fff;
        }

        .saveModle .top .btn {
            font-size: 0.2rem;
            width: 0.34rem;
            height: 0.22rem;
            line-height: 0.12rem;
            display: inline-block;
            float: right;
        }

        .saveModle .top .btn:hover {
            color: red;
        }

        .saveModle .saveBtn {
            margin: 0 auto;
            margin-top: 0.35rem;
            display: block;

        }

        .modleBj {
            position: fixed;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            z-index: 1977;
            background: #DCE2F1;
            filter: alpha(opacity=60);
            opacity: .6;
            display: none;
        }

        #modal {
            height: 100%;
            width: 100%;
            position: absolute;
            z-index: 999;
            background-color: white;
        }

        .td-value {
            text-align: left !important;
            vertical-align: middle;
            word-wrap: break-word;
        }

        .td-value span {
             max-height: 0.56rem;
            overflow: hidden;
            padding-left: 0.06rem;
            word-wrap: break-word;
            color: #2a8cec !important;
        }

        .div-td-content-more {
            position: absolute;
            height: auto;
            z-index: 999;
            background-color: #d3e8fd;
            padding: 0.08rem 0.06rem;
            border: 0.01rem solid #e8e8ea;
            display: none;
            overflow: hidden;
        }

        .div-td-content-more i {
            width: 0.15rem;
            height: 0.12rem;
            background: url("/dist/img/more-icon.png");
            position: absolute;
            left: 0.5rem;
            top: -.12rem;
        }

        .table-bordered tbody tr:last-child td {
            /*border-bottom-color: transparent !important;*/
        }

        .lastTable tbody tr:last-child td {
            border-bottom-color: #cbcbcd !important;
        }

        h5 {
            padding: 0;
            font-size: 12px;
            text-align: center;
            color: #333333;
        }

        td.bd_none {
            padding: 0 !important;
            border: 0 !important;
            border-width: 0 !important;
        }

        .jiaobiao {
            position: relative;
        }

        .jiaobiao i {
            display: block;
            width: 0;
            height: 0;
            border-width: 0px 0 .12rem .12rem;
            border-style: solid;
            border-color: transparent transparent transparent #2a8cec;
            position: absolute;
            top: 0px;
            left: 0px;
        }

        .tit {
            background-color: #d3e8fd;
            line-height: 0.24rem;
            height: 0.24rem;
            font-weight: bold;
        }

        .td-title1 {
            line-height: 0;
        }

        .btn-blue {
            border: none;
            background: #2a8ced;
            color: #fff;
            font-size: 0.22rem;
            height: 0.58rem;
            width: 14%;
        }

        .btn-blue.focus, .btn-blue:focus, .btn-blue:hover {
            color: #fff;
            text-decoration: none;
        }

        .pingjia {
            border: 1px solid rgb(188, 184, 184);
            width: 50%;
            height: 22px;
            line-height: 20px;
            color: rgb(188, 184, 184);
            float: left;
            margin-left: 0px;
            text-align: center;
            margin-top: 5px;
            cursor: pointer;
            font-size: 13px;
            -webkit-transform: scale(0.9);
        }

        table {
            table-layout: fixed;
            border: none;
        }

        .pingjia_active {
            border: 1px solid #2a8cec;
            width: 50%;
            height: 22px;
            line-height: 20px;
            background: #2a8cec;
            color: #ffffff;
            float: left;
            margin-left: 0px;
            text-align: center;
            margin-top: 5px;
            cursor: pointer;
            font-size: 13px;
            -webkit-transform: scale(0.9);
        }

        .but_tijiao {
            border: none;
            background: #2a8ced;
            color: #fff;
            width: 21%;
            height: 20px;
            line-height: 9px;
            font-size: 10px;
            border-radius: 0px;
        }

        .divMore {
            width: 12px;
            height: 12px;
            position: absolute;
            background-image: url(/dist/img/gengduo.png);
            background-repeat: no-repeat;
            background-size: cover;
            right: 8px;
            top: 40px;
            z-index: 99;
        }

        .divMore_active {
            width: 12px;
            height: 12px;
            position: absolute;
            background-image: url(/dist/img/shouqi.png);
            background-repeat: no-repeat;
            background-size: cover;
            right: 8px;
            top: 40px;
            z-index: 99;
        }

        .evaluation {
            cursor: pointer;
            width: 36px;
            margin: 0 auto;
            height: 19px;
            line-height: 18px;
            text-align: justify;
            display: inline-block;
            overflow: hidden;
            vertical-align: middle;
        }

        .icon_radio {
            width: 18px;
            height: 18px;
            border-radius: 50%;
            border: solid 1px #aaaaaa;
            background-color: #ffffff;
            cursor: pointer;
            position: absolute;
            top: 0px;
            left: 23px;
        }

        .icon_active_radio {
            width: 18px;
            height: 18px;
            border-radius: 50%;
            cursor: pointer;
            border: solid 1px #aaaaaa;
            /*background-color: #0076FF;*/
            background: url("/dist/img/duigouw.png") -2px center no-repeat;

            position: absolute;
            top: 0px;
            left: 23px;
        }

        .divOne {
            max-height: 35px;
            line-height: 35px;
            height: 35px;
            overflow: hidden;
            text-overflow: ellipsis;
            display: -webkit-box;
            -webkit-box-orient: vertical;
            -webkit-line-clamp: 1;
        }
    </style>


</head>
<body style="background-color:#fff;">
<div class="div-td-content-more" style="width: 100%;"><i></i></div>
<section v-cloak class="content" id="app" style="padding: 0px;">

    <table class="table text-center" style="margin-bottom:15px !important;width: 100%;">
        <tr>
            <th style="border-bottom: none;position: relative;border-right: 1px solid #cbcbcd;" class="tit">评价列表</th>
        </tr>
        <tr v-if="commentList.length>0">
            <td class="bd_none">
                <table class="table  text-center table-border-right-none" v-for="(item,i) in commentList">
                    <tr>
                        <th style="width:25%" class="jiaobiao"><i></i>评价人</th>
                        <td class="td-value" style="width:25%">
                            <div class="oa-name" style="margin-left:4px;">{{item.createUserName}}</div>
                        </td>
                        <th style="width:25%">是否合格</th>
                        <td style="width:25%;border-right: 1px solid #cbcbcd;" class="td-value" v-if="item.grade=='未评价'">
                            <span>{{item.grade}}</span>
                        </td>
                        <td style="width:25%;border-right: 1px solid #cbcbcd;" v-else class="td-value">
                            <span>{{item.grade=='合格'?'是':'否'}}</span>
                        </td>
                    </tr>
                    <tr>
                        <th style="width:25%;border-bottom: 1px solid #cdcdce" class="td-row2">内容
                        </th>
                        <td colspan="4" class="td-value td-row2"
                            style="border-right: 1px solid #cbcbcd;border-bottom: 1px solid #cbcbcd;"><span
                                class="lineOne"  >{{item.otherDescription}}</span>
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
    </table>

</section>
<script src="/dist/js/pages/rem/rem.js"></script>
<!--插件JS-->
<script src="https://file.ggxqce.com/web/jquery-2.2.3.min.js"></script>
<script src="https://file.ggxqce.com/web/vue.min.js"></script>
<script src="https://file.ggxqce.com/web/bootstrap.min.js"></script>
<!--框架已定义 JS-->
<script src="/dist/js/app_iframe.js?t=7e54a132"></script>
<!--oa自定义  JS-->
<script src="/dist/js/oaApp.js?t=63aed32f"></script>

<script type="text/javascript">
    $(function () {
        $("body").on("click", ".td-value", function (e) {
            if ($(".div-td-content-more").is(":hidden")) {
                var text = $(this).text();
                if (text != "") {
                    text = "<i></i>" + text;
                    $(".div-td-content-more").html(text).css({
                        "width": $(this).outerWidth() + "px",
                        "left": $(this).offset().left,
                        "top": ($(this).offset().top + $(this).outerHeight()) + "px"
                    }).show();
                    e.stopPropagation();
                }
            } else {
                $(".div-td-content-more").hide();
            }

        });
        $("body").on("click", ".div-td-content-more", function (e) {
            e.stopPropagation();
        });
        $("body").on("click", function () {
            $(".div-td-content-more").hide();
        });
    });

</script>
<script>
    $.ajaxSetup({
        global: true,
        type: "POST",
        cache: false,
        dataType: "json",
        contentType: 'application/json;charset=utf-8',
        beforeSend: function () {
        },
        complete: function () {

        },
        error: function (e) {
            alert('error' + e.responseText);
        }
    });
    $.extend($.wyui, {
        page: {
            urlParams: null,
            queryParams: {
                requestPage: 1,
                pageSize: 30
            },
            dataUrl: '',
            createQueryParams: function () {
            },
            getByPage: function (type) {
                $.ajax({
                    url: $.wyui.page.dataUrl,
                    data: JSON.stringify($.wyui.page.queryParams),
                    beforeSend: function () {

                    },
                    complete: function () {
                    },
                    success: function (r) {
                        $.wyui.page.queryParams.requestPage++;

                        if (r.data.sendData.pager && r.data.sendData.pager.pageCount == 0) {
                            r.data.sendData.pager.pageCount = 1;
                        }
                        if (type == "scroll") {
                            $.wyui.page.getByPage_scroll_callback(r.data.sendData.records);
                        } else {
                            if ($.wyui.page.getByPage_callback_new) {
                                $.wyui.page.getByPage_callback_new(r.data.sendData.records);
                            }
                        }

                    }
                });
            }
        },
        postMethod: function (url, data, callback, sync, id) {
            if (!id) {
                id = "#app"
            }
            $.ajax({
                url: server.ip + url,
                async: sync ? false : true,
                data: JSON.stringify(data),
                beforeSend: function () {

                },
                complete: function () {
                    setTimeout(function () {
                    }, 1000);

                },
                success: function (r) {
                    if (!r.e.code) {
                        callback(r.data.sendData);
                    } else {
                        alert(r.e.desc);
                        JSBridge.call(UI, 'showToast', {title: r.e.desc})
                    }
                },
                error: function (e) {
                    JSBridge.call(UI, 'showToast', {title: e.responseText})
                    alert(url + e.responseText);
                }
            });
        },
    });
</script>
<script type="text/javascript">

    var app = new Vue({
        el: '#app',
        data: {
            userId: getUrlParamObj().userId,
            commentList: [],
        },
        methods: {
        },
        mounted: function () {
            //判断有没有传过来的id
            //判断页面状态
            var that = this;
            var userId = getUrlParamObj().userId;

            var curDate = new Date();
            var preDate = new Date(curDate.getTime() - 24 * 60 * 60 * 1000);

            var data = {
                'reportDate': preDate.Format("yyyy-MM-dd"),
                'sendUserId': userId,
            };
            var obj = {
                dialog: 'show'
            }
            prompt(JSON.stringify(obj))
            $.wyui.postMethod('/wreport/getPingjiaList.json', data, function (data) {
                var obj = {
                    dialog: 'hidden'
                }
                prompt(JSON.stringify(obj))

                that.commentList = data.yesTodayList;

                //JSBridge.call(UI, 'hideLoading')
            })
        }
    });


</script>

</body>
</html>